//
//  PPUserAgreementViewController.m
//  pickpic
//
//  Created by GaoYongyue on 16/10/9.
//  Copyright © 2016年 MicroDream. All rights reserved.
//

#import "PPUserAgreementViewController.h"

@interface PPUserAgreementViewController ()
@property (readwrite, nonatomic, strong) UIWebView *webView;
@end

@implementation PPUserAgreementViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    self.title = @"用户协议";
    _webView = [[UIWebView alloc] initWithFrame:CGRectMake(0.f, 0, self.view.width, self.view.height)];
    _webView.scrollView.bounces = NO;
    [self.view addSubview:_webView];

    NSURL *filePath = [[NSBundle mainBundle] URLForResource:@"user-agreement.html" withExtension:nil];
    NSURLRequest *request = [NSURLRequest requestWithURL:filePath];
    [_webView loadRequest:request];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
